package com.longdaji.decoration.ui.activitiesOfMine.personData;

import android.content.Context;

import com.longdaji.decoration.base.BasePresenter;
import com.longdaji.decoration.base.BaseView;
import com.longdaji.decoration.bean.MyCities;
import com.longdaji.decoration.bean.MyProvinces;
import com.longdaji.decoration.bean.MyUniversities;

import java.util.List;

import chihane.jdaddressselector.model.City;
import chihane.jdaddressselector.model.County;
import chihane.jdaddressselector.model.Province;

/**
 * Created by Kanade on 2018/1/21 0021.
 */

public interface PersonalDataContract {
    interface View extends BaseView {
        void showHeadPortraitChanged();

        void showMaleChosen();

        void showFemaleChosen();

        void showUpdateSucceed(boolean isUserInfo);

        void showRegisterDefect(int defectNo);

        void showRegisterSucceed();

        void showRegisterError();

        void showUsernameVerifyFailed();

        void showQiNiuToken(String token);

        void showUpLoadResult(boolean isSuccess, String url);


    }

    interface Presenter extends BasePresenter<View> {

        void initPresenter();


        void changeHeadPortraitByAlbum(String uri, String key, String token);

        void onMaleChosen();

        void onFemaleChosen();

        List<Province> getProvince();

        List<City> getCity();

        List<County> getCampus();

        void OnRegisterPersonalData(boolean isHeadChanged, String username, String name, String telephone, String password,
                                    String remark, String sign, String constellation, String genger,
                                    String head_img_location, String registerTime, String campusName,
                                    String dormitoryName, int isGraduate);

        void onUpdateData(boolean isHeadChanged, String userid, String username, String name, String constellation, String gender,
                          String headImgLocation, String delFlag, String remark,
                          String sign, String campus, int credits, String dormitory);

    }

}
